package com.gem.service;


import com.gem.entity.Student;
import com.github.pagehelper.PageInfo;

import java.util.List;

/**
 * @author 刘聪
 * Created  on 2020/9/17
 */
public interface StudentService {

    /*登录*/
    Student login(String name, String password);

    /*添加学生*/
    void addStudent(Student student);

    /*批量删除学生信息*/
    void deleteStudents(Long id);

    /*修改学生信息*/
    void editStudents(Student student);

    /*查询*/
    List<Student> searchAllStudents();

    /*查询学号*/
    Student searchStudentByNumber(String studentNumber);

    /*根据id获得学生对象*/
    Student searchStudentById(Long id);

    /*搜索姓名*/
    PageInfo<Student> searchByNamePages(Integer pageNum, Integer pageSize,String name);

    /*分页查询方法*/
    PageInfo<Student> listPage(Integer pageNum, Integer pageSize);


}
